<html>
<head></head>
<body>
    <table border='1'>
        <tr>
            <td>足球队1</td>
            <td>比分</td>
            <td>足球队2</td>
            <td>操作</td>
        </tr>    
        {foreach from=$key item=v}
        <tr>
        <td><a href="index.php?id={$v['teamone']}&c=Team&a=index">{$v['tn1']}</a></td>
        <td>{$v['score']}</td>
        <td><a href="index.php?id={$v['teamtwo']}&c=Team&a=index">{$v['tn2']}</a></td>
        <td><a href="index.php?mid={$v['id']}&m=admin&c=Update&a=index">编辑</a>/<a href="index.php?mid={$v['id']}&m=admin&c=Delete&a=Del">删除</a></td>
        </tr>
        {/foreach}   
    </table>
    <a href='index.php?m=home&c=Play&a=index'>展示所有的球员</a>
    <form action="index.php?m=admin&c=Add&a=doadd" method="post">
        球队1：<select name="teamone">
        
        {foreach from=$key item=v}
            <option value="{$v['teamone']}">{$v['tn1']}</option>
        {/foreach}
        
        </select>
        比分：<input type="text" name="score" value="">
        球队2：<select name="teamtwo">
        
        {foreach from=$key item=v}
            <option value="{$v['teamtwo']}">{$v['tn2']}</option>';
        {/foreach}
        
        </select>
        <input type="submit" value="提交">
    </form>
</body>
</html>















